<template>
  <tr>
    <td>{{ obj.id }}</td>
    <td>{{ obj.uname }}</td>
    <td>{{ obj.age }}</td>
    <td>{{ obj.gender }}</td>
    <td>{{ obj.salary }}</td>
    <td>{{ obj.city }}</td>
    <td><a href="#" @click.prevent.stop="$emit('del', idx)">删除</a></td>
  </tr>
</template>

<script>
export default {
  props: {
    idx: {
      type: Number,
      required: true,
    },
    obj: {
      type: Object,
      required: true,
    },
  },
};
</script>

<style>
</style>